﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x0200010D RID: 269
	public class TRedshiftCreateUser : TCustomSqlStatement
	{
		// Token: 0x060008D4 RID: 2260 RVA: 0x003028E6 File Offset: 0x00300AE6
		public TRedshiftCreateUser(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftCreateUser;
		}

		// Token: 0x1700018E RID: 398
		// (get) Token: 0x060008D5 RID: 2261 RVA: 0x003028FA File Offset: 0x00300AFA
		// (set) Token: 0x060008D6 RID: 2262 RVA: 0x00302902 File Offset: 0x00300B02
		public virtual TObjectName UserName
		{
			get
			{
				return this.userName;
			}
			set
			{
				this.userName = value;
			}
		}

		// Token: 0x060008D7 RID: 2263 RVA: 0x0030290C File Offset: 0x00300B0C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.userName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060008D8 RID: 2264 RVA: 0x00302949 File Offset: 0x00300B49
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008D9 RID: 2265 RVA: 0x00302959 File Offset: 0x00300B59
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400122E RID: 4654
		private TObjectName userName;
	}
}
